import subprocess

p = subprocess.run('ls -l', shell=True)
a = p.returncode
print(a, "类型：", type(a))
